package com.hpdz.hotel_back.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hpdz.hotel_back.entity.Admin;
import com.hpdz.hotel_back.entity.Employee;



public interface AdminService extends IService<Admin> {
    Admin login(Admin admin);


    IPage<Employee> getAllEmp(Integer current, Integer size);

    boolean modifyEmployee(Employee emp);

    boolean addEmp(Employee emp);

    boolean modifyAdmin(Admin admin);

    IPage<Employee> searchEmpPage(Integer current, Integer size, Employee emp);

    boolean deleteEmp(Integer id);

    Boolean register(Admin admin);
}
